// 首页路由
import { dashboardBreadCrumb } from "./dashboard";
// 待办路由
const todoBreadCrumb = [{ name: "待办列表", code: "" }];

export default [
  {
    path: "/todo",
    name: "TodoTodo",

    meta: {
      title: "待办列表",
    },
    children: [
      {
        path: "/job",
        name: "Job",
        component: () =>
          import(/* webpackChunkName: "Job" */ "@/views/todo/job/job.vue"),
        meta: {
          title: "工作",
          isKeepAlive: true,
          breadCrumbList: [
            ...dashboardBreadCrumb,
            ...todoBreadCrumb,
            { name: "工作", code: "" },
          ],
        },
      },

      {
        path: "/develop",
        name: "Develop",
        component: () =>
          import(
            /* webpackChunkName: "Develop" */ "@/views/todo/develop/develop.vue"
          ),
        meta: {
          title: "开发",
          isKeepAlive: true,
          breadCrumbList: [
            ...dashboardBreadCrumb,
            ...todoBreadCrumb,
            { name: "开发", code: "" },
          ],
        },
      },

      {
        path: "/life",
        name: "Life",
        component: () =>
          import(/* webpackChunkName: "Life" */ "@/views/todo/life/life.vue"),
        meta: {
          title: "生活",
          isKeepAlive: true,
          breadCrumbList: [
            ...dashboardBreadCrumb,
            ...todoBreadCrumb,
            { name: "生活", code: "" },
          ],
        },
      },
    ],
  },
];
